home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 4 / QRZ Ham Radio Callsign Database - Volume 4.iso / files / dsp / drbubtxt / 56000tar.z / 56000tar / 56000 / adc16 / loopevb.lst < prev    next >
File List  |  1992-04-28  |  4KB  |  133 lines

  1. Motorola DSP56000 Macro Cross Assembler  Version 2.03  89-08-04  15:58:57  loopevb.asm  Page 1
  2.  
  3.  
  4.  
  5. 1      
  6. 2                        ;************************************************************
  7. 3                        ; file:loopevb.asm                                          *
  8. 4                        ;                                                           *
  9. 5                        ; Simple read ADC write DAC loop...                         *
  10. 6                        ; reads DSP56ADC16 data and writes to PCM-56                  *
  11. 7                        ;                                                           *
  12. 8                        ;************************************************************
  13. 9                        ; Written by Charlie Thompson 10/19/88 -- Rev 1.0 11/1/88
  14. 10     
  15. 11                                 opt     nomd,nocex,nocm,nomex
  16. 12     
  17. 13                                 page    132
  18. 14     
  19. 15                       ; Program start address
  20. 16     
  21. 17        P:0040                   org     p:$40
  22. 18     
  23. 19                       ; Set up ADS board in case of force break instead of force reset
  24. 20     
  25. 21        P:0040 08F4BE            movep             #0,x:$FFFE              ;set bcr to zero
  26.                  000000
  27. 22        P:0042 0500BB            movec             #0,sp                   ;init stack pointer
  28. 23        P:0043 0500B9            movec             #0,sr                   ;clear loop flag
  29. 24     
  30. 25                       ; Set up the SSI for operation with the DSP56ADC16EVB
  31. 26                       ; The following code sets port C to function as SCI/SSI
  32. 27     
  33. 28        P:0044 280000            move              #$0,a0                  ;zero PCC to cycle it
  34. 29        P:0045 08C821            movep             a0,x:$FFE1
  35. 30     
  36. 31        P:0046 50F400            move              #$0001ff,a0
  37.                  0001FF
  38. 32        P:0048 08C821            movep             a0,x:$FFE1              ;write PCC
  39. 33     
  40. 34                       ; The following code sets the SSI CRA and CRB control registers for external
  41. 35                       ; continuous clock, synchronous, normal mode.
  42. 36     
  43. 37        P:0049 50F400            move              #$004000,a0             ;CRA pattern for word length=16 bits
  44.                  004000
  45. 38        P:004B 08C82C            movep             a0,x:$FFEC
  46. 39     
  47. 40        P:004C 50F400            move              #$003200,a0             ;CRB pattern for continous ck,sych,normal mode
  48.                  003200
  49. 41        P:004E 08C82D            movep             a0,x:$FFED              ;word long frame sync: FSL=0;ext ck/fs 
  50. 42     
  51. 43     
  52. 44     
  53. 45                       ;************************************************************************
  54. 46                       ; Actual read A/D and write D/A -- insert application code as indicated *
  55. 47                       ;************************************************************************
  56. 48     
  57. 49                       ; The following code polls the RDF flag in the SSI-SR and waits for RDF=1
  58. 50                       ; and then reads the RX register to retrieve the data from the A/D converter.
  59. 51                       ; Sample rate is controlled by DSP56ADC16 board.   
  60. 52     
  61. 53     
  62. 54     
  63. 55     
  64. 56        P:004F 0AAE87  poll      jclr    #7,x:$FFEE,poll                   ;loop until RDF bit = 1
  65.                  00004F
  66. 57        P:0051 084E2F            movep             x:$FFEF,a               ;get A/D converter data
  67. Motorola DSP56000 Macro Cross Assembler  Version 2.03  89-08-04  15:58:57  loopevb.asm  Page 2
  68.  
  69.  
  70.  
  71. 58     
  72. 59     
  73. 60                       ; Write DSP56ADC16 A/D converter data to the PCM-56
  74. 61     
  75. 62        P:0052 567000            move              a,x:$FFEF               ;write the PCM-56 D/A via SSI xmt reg.
  76.                  00FFEF
  77. 63        P:0054 0C004F            jmp     poll                              ;loop indefinitely
  78. 64     
  79. 65                                 end
  80. 0    Errors
  81. 0    Warnings
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.